Tokens for HTTP Web Request

The HTTP Web Request activity produces the following tokens.

Name Description Sample Syntax*
Content File The file returned by the Web service in response to the HTTP web request. You can use this token in the HTTP Form Post activity to post a file to a form. %(HTTPWebRequest_Content File)
Content The data returned by the HTTP web request. %(HTTPWebRequest_Content)
Content Length The length of the response in characters or bytes. %(HTTPWebRequest_Content Length)
Response Status

The status code returned with the request. If the request succeeded, the status code will be in the 200s. If it failed, the code will be in the 400s or 500s. These warnings will appear in the Message tab of the workflow's instance details.

%(HTTPWebRequest_Status)
Response Status Description The description that accompanies the status code. %(HTTPWebRequest_Status Description)
Request Succeeded Whether the HTTP web request succeeded or not. This token will have one of two values: "True" or "False." %(HTTPWebRequest_Succeeded)
Response Header A token will be created for each response header you request. %(HTTPWebRequest_Response Header Name of Header)

*"HTTPWebRequest" will change to match the name specified in the Activity Name property box.

Note: All non-alphanumeric characters, except underscores, are removed from the name. For example, if you rename the activity "Connect to ^Site^," the syntax for the Content token will be: %(ConnecttoSite_Content).